Integrand size = 17, antiderivative size = 31 \[ \int \frac {\cot ^2(x)}{\sqrt {a+a \tan ^2(x)}} \, dx=-\frac {\csc (x) \sec (x)}{\sqrt {a \sec ^2(x)}}-\frac {\tan (x)}{\sqrt {a \sec ^2(x)}} \]
[Out]
Time = 0.12 (sec) , antiderivative size = 31, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.235, Rules used = {3738, 4210, 2670, 14} \[ \int \frac {\cot ^2(x)}{\sqrt {a+a \tan ^2(x)}} \, dx=-\frac {\csc (x) \sec (x)}{\sqrt {a \sec ^2(x)}}-\frac {\tan (x)}{\sqrt {a \sec ^2(x)}} \]
[In]
[Out]
Rule 14
Rule 2670
Rule 3738
Rule 4210
Rubi steps \begin{align*} \text {integral}& = \int \frac {\cot ^2(x)}{\sqrt {a \sec ^2(x)}} \, dx \\ & = \frac {\sec (x) \int \cos (x) \cot ^2(x) \, dx}{\sqrt {a \sec ^2(x)}} \\ & = -\frac {\sec (x) \text {Subst}\left (\int \frac {1-x^2}{x^2} \, dx,x,-\sin (x)\right )}{\sqrt {a \sec ^2(x)}} \\ & = -\frac {\sec (x) \text {Subst}\left (\int \left (-1+\frac {1}{x^2}\right ) \, dx,x,-\sin (x)\right )}{\sqrt {a \sec ^2(x)}} \\ & = -\frac {\csc (x) \sec (x)}{\sqrt {a \sec ^2(x)}}-\frac {\tan (x)}{\sqrt {a \sec ^2(x)}} \\ \end{align*}
Time = 0.03 (sec) , antiderivative size = 22, normalized size of antiderivative = 0.71 \[ \int \frac {\cot ^2(x)}{\sqrt {a+a \tan ^2(x)}} \, dx=\frac {-\csc (x) \sec (x)-\tan (x)}{\sqrt {a \sec ^2(x)}} \]
[In]
[Out]
Time = 0.28 (sec) , antiderivative size = 19, normalized size of antiderivative = 0.61
method | result | size |
default | \(\frac {\cot \left (x \right )-2 \sec \left (x \right ) \csc \left (x \right )}{\sqrt {a \sec \left (x \right )^{2}}}\) | \(19\) |
risch | \(\frac {i \left ({\mathrm e}^{4 i x}-6 \,{\mathrm e}^{2 i x}+1\right )}{2 \sqrt {\frac {a \,{\mathrm e}^{2 i x}}{\left ({\mathrm e}^{2 i x}+1\right )^{2}}}\, \left ({\mathrm e}^{2 i x}+1\right ) \left ({\mathrm e}^{2 i x}-1\right )}\) | \(54\) |
[In]
[Out]
none
Time = 0.26 (sec) , antiderivative size = 33, normalized size of antiderivative = 1.06 \[ \int \frac {\cot ^2(x)}{\sqrt {a+a \tan ^2(x)}} \, dx=-\frac {\sqrt {a \tan \left (x\right )^{2} + a} {\left (2 \, \tan \left (x\right )^{2} + 1\right )}}{a \tan \left (x\right )^{3} + a \tan \left (x\right )} \]
[In]
[Out]
\[ \int \frac {\cot ^2(x)}{\sqrt {a+a \tan ^2(x)}} \, dx=\int \frac {\cot ^{2}{\left (x \right )}}{\sqrt {a \left (\tan ^{2}{\left (x \right )} + 1\right )}}\, dx \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 128 vs. \(2 (27) = 54\).
Time = 0.36 (sec) , antiderivative size = 128, normalized size of antiderivative = 4.13 \[ \int \frac {\cot ^2(x)}{\sqrt {a+a \tan ^2(x)}} \, dx=\frac {{\left ({\left (\sin \left (3 \, x\right ) - \sin \left (x\right )\right )} \cos \left (4 \, x\right ) - {\left (\cos \left (3 \, x\right ) - \cos \left (x\right )\right )} \sin \left (4 \, x\right ) - {\left (6 \, \cos \left (2 \, x\right ) - 1\right )} \sin \left (3 \, x\right ) + 6 \, \cos \left (3 \, x\right ) \sin \left (2 \, x\right ) - 6 \, \cos \left (x\right ) \sin \left (2 \, x\right ) + 6 \, \cos \left (2 \, x\right ) \sin \left (x\right ) - \sin \left (x\right )\right )} \sqrt {a}}{2 \, {\left (a \cos \left (3 \, x\right )^{2} - 2 \, a \cos \left (3 \, x\right ) \cos \left (x\right ) + a \cos \left (x\right )^{2} + a \sin \left (3 \, x\right )^{2} - 2 \, a \sin \left (3 \, x\right ) \sin \left (x\right ) + a \sin \left (x\right )^{2}\right )}} \]
[In]
[Out]
none
Time = 0.28 (sec) , antiderivative size = 47, normalized size of antiderivative = 1.52 \[ \int \frac {\cot ^2(x)}{\sqrt {a+a \tan ^2(x)}} \, dx=-\frac {\tan \left (x\right )}{\sqrt {a \tan \left (x\right )^{2} + a}} + \frac {2 \, \sqrt {a}}{{\left (\sqrt {a} \tan \left (x\right ) - \sqrt {a \tan \left (x\right )^{2} + a}\right )}^{2} - a} \]
[In]
[Out]
Time = 11.09 (sec) , antiderivative size = 40, normalized size of antiderivative = 1.29 \[ \int \frac {\cot ^2(x)}{\sqrt {a+a \tan ^2(x)}} \, dx=\frac {\sqrt {2}\,\left (6\,\sin \left (2\,x\right )-2\,\sin \left (2\,x\right )\,\left (2\,{\cos \left (x\right )}^2-1\right )\right )}{8\,\sqrt {a}\,\sqrt {2\,{\cos \left (x\right )}^2}\,\left ({\cos \left (x\right )}^2-1\right )} \]
[In]
[Out]